/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.GeoZoneDao;
import cc.altius.model.GeographicalZone;
import cc.altius.model.MasterZone;
import cc.altius.service.GeoZoneService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author sagar
 */
@Service
public class GeoZoneServiceImpl implements GeoZoneService {

    @Autowired
    private GeoZoneDao geoZoneDao;
    
    @Override
    public int addGeoZone(GeographicalZone geoZone,String selectedMasterZoneIds) {
        return this.geoZoneDao.addGeoZone(geoZone, selectedMasterZoneIds);
    }

    @Override
    public List<MasterZone> getMasterZoneList() {
        return this.geoZoneDao.getMasterZoneList();
    }

    @Override
    public List<Map<String, Object>> getGeoZoneList(int geographicalZoneId, int cityId) {
        return this.geoZoneDao.getGeoZoneList(geographicalZoneId, cityId);
    }

    @Override
    public List<GeographicalZone> getGeoZoneList() {
        return this.geoZoneDao.getGeoZoneList();
    }

    @Override
    public GeographicalZone getGeoZoneByGeoZoneId(int geographicalZoneId) {
        System.out.println("inside of getGeoZoneByGeoZoneId of serviceimpl");
        return this.geoZoneDao.getGeoZoneByGeoZoneId(geographicalZoneId);
    }

    @Override
    public List<Map<String, Object>> getMasterZoneList(int geographicalZoneId) {
       return this.geoZoneDao.getMasterZoneList(geographicalZoneId);
    }

    @Override
    public int updateGeoZone(GeographicalZone geoZone, String selectedMasterZoneIds) {
        return this.geoZoneDao.updateGeoZone(geoZone, selectedMasterZoneIds);
    }

    @Override
    public List<Map<String, Object>> getMasterZoneListByCityId(int cityId) {
       return this.geoZoneDao.getMasterZoneListByCityId(cityId);
    }

//    @Override
//    public int addGeoZone(String geographicalZoneName, int cityId, String selectedMasterZoneIds) {
//       return this.geoZoneDao.addGeoZone(geographicalZoneName, cityId, selectedMasterZoneIds);
//    }

   
    
    
}
